import service from "@/request/service"
const http={
    get(url,param){
        return service({
            url:url,
            params:param?param:null,
            method:'get'
        })
    },
    post(url,param){
        return service({
            url:url,
            data:param?param:null,
            method:'post'
        })
    },
    put(url,param,type){
        return service({
            url:url,
            params:param?param:null,
            method:'put',
            type:type
        })
    },
    delete(url,param){
        return service({
            url:url,
            params:param?param:null,
            method:'delete'
        })

    }
}

export default http